package edu.zju.gis.dldsj.dao;

import edu.zju.gis.dldsj.base.BaseMapper;
import edu.zju.gis.dldsj.entity.User;

import java.util.List;

public interface UserMapper extends BaseMapper<User, String> {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByName(String name);

    List<User> selectByRoleId(String roleId, int offset, int size);

    int deleteByRoleId(String roleId);
}